package com.zk.nakedfowl.basicData.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="poultry_category")
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class Category implements Serializable{

	@Id
	private String id;//


	
	private String number;//编号
	private String name;//品种名称
	private String detail;//详细信息



	private String parentId;//父级类别
	private String slaughterHouseId;//屠宰场id
	private String createBy;//创建者
	private java.util.Date createDate;//创建时间

	public List<Category> getChildren() {
		return children;
	}

	public void setChildren(List<Category> children) {
		this.children = children;
	}

	//关联数据
	@Transient
	private List<Category> children;



	public String getSlaughterHouseId() {
		return slaughterHouseId;
	}

	public void setSlaughterHouseId(String slaughterHouseId) {
		this.slaughterHouseId = slaughterHouseId;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}



	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getNumber() {		
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {		
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getDetail() {		
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getParentId() {		
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}


	
}
